import java.util.Scanner;

public class stjdb{
    public static void main(String[] args){
        for(int i=1;i<5;i++){
            System.out.println("第"+ i +"局游戏开始");
            System.out.println("请你出拳:1石头,2剪刀,3布");
            Scanner sc=new Scanner(System.in);
            int choice = sc.nextInt();
            int enemyChoice = (int)(Math.random()*3)+1;
            System.out.println("你的出拳结果是："+change(choice));
            System.out.println("敌人的出拳结果是："+change(enemyChoice));
            if((choice == 1 && enemyChoice == 2)||(choice == 2 && enemyChoice==3)||(choice==3&&enemyChoice==1)){
                System.out.println("你赢了！");
            }else if((choice == 1 && enemyChoice == 1)||(choice == 2 && enemyChoice==2)||(choice==3&&enemyChoice==3)){
                System.out.println("平局了！");
            }
            else if((choice == 1 && enemyChoice == 3)||(choice == 2 && enemyChoice==1)||(choice==3&&enemyChoice==1)){
                System.out.println("你输了！");
            }
            else{
                System.out.println("游戏结束！");
            }
        }
    }
    public static String change(int choice){
        String ch = "";
        switch(choice){
            case 1:
                ch = "石头";
                break;
            case 2:
                ch = "剪刀";
                break;
            case 3:
                ch = "布";
                break;
        }
        return ch;

    }
}